//
//  TechnologyViewController.m
//  AirConditioner
//
//  Created by Sean Wang on 12-4-30.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "TechnologyViewController.h"
#import "BrandBottomViewController.h"

@interface TechnologyViewController ()

@end

@implementation TechnologyViewController

@synthesize scrollView;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.title = @"Technology";
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    UIViewController *viewController = [[BrandBottomViewController alloc] initWithNibName:@"BrandBottomView" bundle:nil];
    [self.view addSubview:viewController.view];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    CGRect bounds = self.scrollView.bounds;
    self.scrollView.contentSize = CGSizeMake(bounds.size.width, bounds.size.height+110);
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
